<?php

// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'From: Support <support@allyfolio.in>' . "\r\n";

function sendMail($to,$subject,$message,$header)
{
    //mail("jodhraj1087@gmail.com","Test Mail","Hi this is testing of email");
    //echo $to."  subject : ".$subject."  message : ".$message;
    //echo mail($to,$subject,$message);
    //die;
    if(mail($to,$subject,$message,$header))
    {
        return true;
    }
    else
    {
         return false;
    }
}

?>